/**
 * Created by ZFL on 2017/11/14.
 */
var vm=new Vue({
    el:'#paymentDetail',
    data:{
        paymentList:[]
    }
})
Vue.filter('price',function(value){
    return divideNumber(value,100);
})
var pageNum=1;
var pageSize=10;
var userId= $.getPara('userId');

function appInit(){
    PageInit();
    var timer= setTimeout(function(){
        PageInit();
    },2000);
}
function PageInit() {
    getpaymentDetails();
}
function getpaymentDetails() {
    $.ajaxHandler({
        model: function () {
            var obj = {};
            obj.pageNum = pageNum;
            obj.pageSize = pageSize;
            obj.userId = userId;
            return obj;
        },
        visibleTime: 0,
        dataType: "json",
        api: 'yg_baijiaapporder/orderPay/paymentDetails',
        success: function (res) {
            if (res.code == 10000) {
                var data = res.data;
                vm.paymentList=data;

            }
        }
    })
}
